<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
							<form class="form-horizontal m-t" id="signupForm">
							<input id="id" name="id" th:value="${message.id}"  type="hidden">

																																		<div class="form-group">
									<label class="col-sm-3 control-label">业主名称：</label>
									<div class="col-sm-8">
																			<input id="name" name="name" th:value="${message.name}" class="form-control" type="text">
																		</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">所属小区：</label>
									<div class="col-sm-8">
																			<input id="community" name="community" th:value="${message.community}" class="form-control" type="text">
																		</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">所在位置：</label>
									<div class="col-sm-8">
																			<input id="address" name="address" th:value="${message.address}" class="form-control" type="text">
																		</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">性质：</label>
									<div class="col-sm-8">
										<select id="nature" name="nature"  class="form-control valid" style="width: 100%"  >
											<option th:field="*{message.nature}" th:each="dict:${houseNatureList}"  th:value="${dict.value}" th:text="${dict.name}">请选择</option>
										</select>
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">类型：</label>
									<div class="col-sm-8">
											<input id="type" name="type" th:value="${message.type}" class="form-control" type="text">

										</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">产权年限：</label>
									<div class="col-sm-8">
																			<input id="yearLimit" name="yearLimit" th:value="${message.yearLimit}" class="form-control" type="text">
																		</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">房屋户型：</label>
									<div class="col-sm-8">
										<input id="houseType" name="houseType" th:value="${message.houseType}" class="form-control" type="text">
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">建筑面积：</label>
									<div class="col-sm-8">
																			<input id="coveredArea" name="coveredArea" th:value="${message.coveredArea}" class="form-control" type="text">
																		</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">房屋朝向：</label>
									<div class="col-sm-8">
										<select id="buildingHead" name="buildingHead"  class="form-control valid" style="width: 100%" >
											<option value="朝南" th:selected="${message.buildingHead == '朝南' }">--朝南--</option>
											<option value="朝北" th:selected="${message.buildingHead == '朝北' }">--朝北--</option>
											<option value="朝西" th:selected="${message.buildingHead == '朝西' }">--朝西--</option>
											<option value="朝东" th:selected="${message.buildingHead == '朝东' }">--朝东--</option>
										</select>
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">所在楼层：</label>
									<div class="col-sm-8">
										<input id="floor" name="floor" th:value="${message.floor}" class="form-control" type="text">
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">电梯：</label>
									<div class="col-sm-8">
										<select id="elevator" name="elevator"  class="form-control valid" style="width: 100%" >
											<option value="0" th:selected="${message.elevator == 0 }">--有配套--</option>
											<option value="1" th:selected="${message.elevator == 1 }">--无配套--</option>
										</select>
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">房本年限：</label>
									<div class="col-sm-8">
										<!--<input id="permit" name="permit" th:value="${message.permit}" class="form-control" type="text">-->
										<select id="permit" name="permit"  class="form-control valid" style="width: 100%" >
											<option value="满一年" th:selected="${message.permit == '满一年' }">满一年</option>
											<option value="满二年" th:selected="${message.permit == '满二年' }">满二年</option>
											<option value="满三年" th:selected="${message.permit == '满三年' }">满三年</option>
											<option value="满四年" th:selected="${message.permit == '满四年' }">满四年</option>
											<option value="满五年" th:selected="${message.permit == '满五年' }">满五年</option>
											<option value="满六年" th:selected="${message.permit == '满六年' }">满六年</option>
											<option value="满七年" th:selected="${message.permit == '满七年' }">满七年</option>
											<option value="满八年" th:selected="${message.permit == '满八年' }">满八年</option>
											<option value="满九年" th:selected="${message.permit == '满九年' }">满九年</option>
											<option value="满十年" th:selected="${message.permit == '满十年' }">满十年</option>
											<option value="满十一年" th:selected="${message.permit == '满十一年' }">满十一年</option>
											<option value="满十二年" th:selected="${message.permit == '满十二年' }">满十二年</option>
											<option value="满十三年" th:selected="${message.permit == '满十三年' }">满十三年</option>
											<option value="满十四年" th:selected="${message.permit == '满十四年' }">满十四年</option>
											<option value="满十五年" th:selected="${message.permit == '满十五年' }">满十五年</option>

										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label">参考总价：</label>
									<div class="col-sm-8">
										<input id="price" name="price" th:value="${message.price}" class="form-control" type="text">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label">装修程度：</label>
									<div class="col-sm-8">
																			<input id="decorateDegree" name="decorateDegree" th:value="${message.decorateDegree}" class="form-control" type="text">
																		</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label">核心卖点：</label>
									<div class="col-sm-8">
										<textarea id="desc" name="desc" th:text="${message.desc}" class="form-control" rows="5"></textarea>
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">业主心态：</label>
									<div class="col-sm-8">
										<textarea id="ownersDesc" name="ownersDesc" th:text="${message.ownersDesc}" class="form-control" rows="5"></textarea>
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">业主性别：</label>
									<div class="col-sm-8">
										<select id="owbersSex" name="owbersSex"  class="form-control valid" style="width: 100%" >
											<option value="1" th:selected="${message.owbersSex == 1 }">男</option>
											<option value="2" th:selected="${message.owbersSex == 2 }">女</option>
										</select>
									</div>
								</div>
																												<div class="form-group">
									<label class="col-sm-3 control-label">业主电话：</label>
									<div class="col-sm-8">
																			<input id="owbersPhone" name="owbersPhone" th:value="${message.owbersPhone}" class="form-control" type="text">
																		</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label">状态：</label>
									<div class="col-sm-8">
										<select id="status" name="status"  class="form-control valid" style="width: 100%" >
											<option value="0" th:selected="${message.status == 0 }">正常</option>
											<option value="1" th:selected="${message.status == 1 }">废弃</option>
										</select>
									</div>
								</div>

								<div class="form-group">
									<div class="col-sm-8 col-sm-offset-3">
										<button type="submit" class="btn btn-primary">提交</button>
										<button type="button" class="btn closeBtn" onclick="myClose();">关闭</button>
									</div>
								</div>
							</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/js/appjs/hnzk/message/edit.js">
	</script>
	<script>
		function myClose(){
			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
			parent.layer.close(index); //再执行关闭

		}

	</script>
</body>
</html>
